package com.chenye.test.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * @Auther:chenye
 * @Data:2018/5/17
 * @Description:
 */
public class TReference {
    private String name;
    private String age;
    private String address;

    public TReference() {
    }

    public TReference(String name, String age, String address) {
        this.name = name;
        this.age = age;
        this.address = address;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Override
    public String toString() {
        return "TReference{" +
                "name='" + name + '\'' +
                ", age='" + age + '\'' +
                ", address='" + address + '\'' +
                '}';
    }

    public static void main(String[] args){
        TReference tReference = null;
        List<TReference> list = new ArrayList<>();
        for(int i=0;i<5;i++){
            tReference = new TReference();
            tReference.setName(i+"");
            tReference.setAddress("address");
            tReference.setAge(i+"");
            list.add(tReference);
        }
        list.forEach((x)->System.err.println(x));
    }
}
